/*
 * SwitchStatus.h
 *
 *  Created on: Mar 20, 2012
 *      Author: kylintse
 */

#ifndef SWITCHSTATUS_H_
#define SWITCHSTATUS_H_

#include <QtCore>

class SwitchStatus : public QThread
{
	Q_OBJECT
public:
	SwitchStatus();
	virtual ~SwitchStatus();

protected:
	virtual void run();

protected slots:
	void queryStatus();

private:
	int m_ledFd;
	const int* m_port_g;
	const int* m_port_100m;
	int* m_port_g_status;
	int* m_port_100m_status;
	int m_port_g_num,m_port_100m_num;

	quint32 m_switchCheckCount;
	quint32 m_switchCheckFreq;
};

#endif /* SWITCHSTATUS_H_ */
